package com.zhangxujie.litewords.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

@Entity
public class Words implements Serializable {

    @PrimaryKey
    public Integer id;

    @ColumnInfo(name = "word")
    public String word;

    @ColumnInfo(name = "explaination")
    public String explaination;

    @ColumnInfo(name = "update_time")
    public long updateTime;

    @ColumnInfo(name = "img_url")
    public String imgUrl;

    @ColumnInfo(name = "version")
    public int version;

    @Override
    public String toString() {
        return "Words{" +
                "id=" + id +
                ", word='" + word + '\'' +
                ", explaination='" + explaination + '\'' +
                ", updateTime=" + updateTime +
                ", imgUrl='" + imgUrl + '\'' +
                ", version=" + version +
                '}';
    }
}
